$('.qued').on('click',function(){


	var id = $(this).data('id');
	var cls = $('.yuanyin'+id+':checked').data('class');
	var res = $('.'+cls).html();
	var time = $('.time'+id).val();


	if( time === null || time === '' || time == undefined )
	{
		alert('未选取时间');
	}else
	{


	$.post(
		'down.html',
		{'id':id,'time':time,'reason':res,'_csrf': $('.request-csrf').val()},
		function(res)
		{
			res = eval('('+res+')');
			if(res.code == 400)
			{
				alert(res.msg);
			}else{
			// 关闭模态框
			 $(".modall-back").hide();
			 location.reload();
			}
		}

		);

	}

});
